<?php
defined('BASEPATH') or exit('No direct script access allowed');


class PropertyController extends Admin_Controller {

    public function __construct() {
        try {
            parent::__construct();
            $this->load->service("SService/PatternService");
            $this->load->service("SService/PropertyService");

        } catch (\TPException $e) {
            exit($e->getRetJson());
        }
    }


    public function getProperty() {
        $res = $this->PatternService->getProperty($_POST);
        exit(retSucc($res));
    }


    public function propertyList() {
        $res = $this->PropertyService->propertyList($_POST);
        exit(retSucc($res));
    }

    public function saveProperty() {
        $res = $this->PropertyService->saveProperty($_POST);
        exit(retSucc($res));
    }

    public function property() {
        $res = $this->PropertyService->property($_POST);
        exit(retSucc($res));
    }

    public function saveProRelation() {
        $res = $this->PropertyService->saveProRelation($_POST);
        exit(retSucc($res));
    }

    public function delProperty() {
        $res = $this->PropertyService->delProperty($_POST);
        exit(retSucc($res));
    }

    public function importProperty() {
        $res = $this->PropertyService->importProperty($_POST);
        exit(retSucc($res));
    }
    
}
